﻿using ProjectManager.Logic.Content;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectManager.Interface
{
    /// <summary>
    /// 需要引入一个包，用于数据库连接
    /// 这个包需要在用户本地部署，所以需要一个轻量的sql provider
    /// 不同的表用不同的文件存储，避免发生冲突（重点）
    /// </summary>
    internal interface ISql
    {
        List<TeamInformation> GetTeams(ProjectInformation projectInformation);
        void AddTeam(ProjectInformation projectInformation,TeamInformation teamInformation);
        void UpdateTeam(ProjectInformation projectInformation, TeamInformation teamInformation);
        List<ProjectTaskInformation> GetTasks(ProjectInformation projectInformation);
        void AddTask(ProjectInformation projectInformation, ProjectTaskInformation taskInformation);
        void UpdateTask(ProjectInformation projectInformation, ProjectTaskInformation taskInformation);
    }
}
